package JavaSE.BLS.Inherit.Sample;

import java.util.HashMap;

public class Parent
{
    public int a = 1;
    public static int b = 1;
    
    public Parent()
    {
        System.out.println("Parent is created");
    }
    
    {
        System.out.println("parent no static");
    }
    
    static
    {
        System.out.println("parent static");
    }
    
    protected void method()
    {
        System.out.println("parent method");
    }
    
    public void m()
    {
        this.method();
    }
    
    public HashMap getMap()
    {
        HashMap<String, String> hashMap = new HashMap();
        hashMap.put("2", "1");
        return hashMap;
    }
    
    public int getMapT(HashMap<Integer, Integer> map)
    {
        System.out.println("父类getMapT");
        map.put(1,1);
        return map.get(1);
    }
}


